//
//  ZHFPhotoHeadView.m
//  GoTraveling
//
//  Created by dllo on 15/12/23.
//  Copyright © 2015年 开发华佗. All rights reserved.
//

#import "ZHFPhotoHeadView.h"

@interface ZHFPhotoHeadView ()

@property (nonatomic, retain) UILabel *label;


@end

@implementation ZHFPhotoHeadView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews {
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(80, 10, SCREEN_WIDTH - 160, 32)];
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.textColor = [UIColor whiteColor];
    self.label.font = [UIFont systemFontOfSize:20];
    [self addSubview:self.label];
}

- (void)setTitle:(NSString *)title {
    
    self.label.text = title;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
